package top.callname.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Logger;

import top.callname.util.NoticeSendThread;
import top.callname.util.TokenThread;

/** 
 * 初始化servlet ,启动线程获取微信Token
 *  
 */  
public class InitServlet extends HttpServlet {  
    private static final long serialVersionUID = 1L;  
    
    Logger logger = Logger.getLogger(InitServlet.class); 
  
    public void init() throws ServletException {  
    	logger.info("启动线程获取微信Token!");
        new Thread(new TokenThread()).start();  
        
        //认证过的公众号才能主动推送
       // logger.info("启动公告处理定时任务！");
       // new Thread(new NoticeSendThread()).start();
    }  
}  
